package com.kedou.sdk.params.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

public class PlatCoinCurrency implements Parcelable {

    /**
     * 支付渠道类型ID
     */
    @SerializedName("currency")
    private int currency;

    /**
     * 支付渠道主题
     */
    @SerializedName("give")
    private int give;

    /**
     * 支付渠道见到描述信息
     */
    @SerializedName("give_text")
    private String giveText;


    public int getCurrency() {
        return currency;
    }

    public void setCurrency(int currency) {
        this.currency = currency;
    }

    public int getGive() {
        return give;
    }

    public void setGive(int give) {
        this.give = give;
    }

    public String getGiveText() {
        return giveText;
    }

    public void setGiveText(String giveText) {
        this.giveText = giveText;
    }

    public PlatCoinCurrency() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.currency);
        dest.writeInt(this.give);
        dest.writeString(this.giveText);


    }

    protected PlatCoinCurrency(Parcel in) {

        this.currency = in.readInt();
        this.give = in.readInt();
        this.giveText = in.readString();

    }

    public static final Creator<PlatCoinCurrency> CREATOR = new Creator<PlatCoinCurrency>() {
        @Override
        public PlatCoinCurrency createFromParcel(Parcel source) {
            return new PlatCoinCurrency(source);
        }

        @Override
        public PlatCoinCurrency[] newArray(int size) {
            return new PlatCoinCurrency[size];
        }
    };
}
